cURL
curl --request DELETE \ --url https://{subdomain}.storage.{region}.nhost.run/v1/files/{id} \ --header 'Authorization: Bearer <token>'
{ "error": { "message": "File not found", "data": {} } }
Permanently delete a file from storage. This removes both the file content and its associated metadata.
API key to authorize requests.
Unique identifier of the file to delete
File successfully deleted
Was this page helpful?